use "C:\Users\atboutton\Google Drive\BouttonDolan\clandestineclients.dta" 

stset duration_months , failure( terminationbeforeliberation )

stsum, by( leaderslostdummy )
sts list, by( leaderslostdummy ) compare
sts list, by( leaderslostdummy )
sts graph, ci by( leaderslostdummy )

*Core results
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13, vce(robust)

*Control indicators
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 frenchcontrolled britishcontrolled americancontrolled other, vce(robust)


*Group activity indicators
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering, vce(robust)

*Full model 
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering frenchcontrolled britishcontrolled americancontrolled other, vce(robust)

esttab using "C:\Users\an891720\Google Drive\Andrew papers\Dolan_Boutton\groupsurvivalall.tex", star(+ 0.10 * 0.05 ** 0.01 *** 0.001) eform replace

eststo clear


*************************************
* Only groups that survived 1 year
*************************************

*Core results
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 if suvived1year ==1, vce(robust)

*Control indicators
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 frenchcontrolled britishcontrolled americancontrolled other if suvived1year ==1, vce(robust)


*Group activity indicators
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering if suvived1year ==1, vce(robust)

*Full model
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering frenchcontrolled britishcontrolled americancontrolled other if suvived1year ==1, vce(robust)

esttab using "C:\Users\an891720\Google Drive\Andrew papers\Dolan_Boutton\groupsurvivaloneyear.tex", star(+ 0.10 * 0.05 ** 0.01 *** 0.001) eform replace


**Same as above using leader lost dummy instead of # of leaders arrested

*Core results
eststo: stcox i.londonsentfounder i.leaderslostdummy partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 if suvived1year ==1, vce(robust)

*Control indicators
eststo: stcox i.londonsentfounder i.leaderslostdummy partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 frenchcontrolled britishcontrolled americancontrolled other if suvived1year ==1, vce(robust)


*Group activity indicators
eststo: stcox i.londonsentfounder i.leaderslostdummy partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering if suvived1year ==1, vce(robust)
**************************************************************
************************** APPENDIX **************************
**************************************************************

** Reasonable to exclude groups excluded **
*******************************************
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 if reasonabletoexclude == 0, vce(robust)

*Control indicators
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 frenchcontrolled britishcontrolled americancontrolled other if reasonabletoexclude == 0, vce(robust)


*Group activity indicators
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering if reasonabletoexclude == 0, vce(robust)

*Full model 
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering frenchcontrolled britishcontrolled americancontrolled other if reasonabletoexclude == 0, vce(robust)

esttab using "C:\Users\atboutton\Google Drive\Andrew papers\Dolan_Boutton\excludedgroups.tex", star(+ 0.10 * 0.05 ** 0.01 *** 0.001) eform replace

eststo clear

eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 if reasonabletoexclude == 0 & suvived1year ==1, vce(robust)

*Control indicators
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 frenchcontrolled britishcontrolled americancontrolled other if reasonabletoexclude == 0 & suvived1year ==1, vce(robust)


*Group activity indicators
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering if reasonabletoexclude == 0 & suvived1year ==1, vce(robust)

*Full model 
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering frenchcontrolled britishcontrolled americancontrolled other if reasonabletoexclude == 0 & suvived1year ==1, vce(robust)

esttab using "C:\Users\atboutton\Google Drive\Andrew papers\Dolan_Boutton\excludedgroupsoneyear.tex", star(+ 0.10 * 0.05 ** 0.01 *** 0.001) eform replace

eststo clear

***********************************
** Binary decapitation indicator
*********************************** 
eststo: stcox i.londonsentfounder leaderslostdummy partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13, vce(robust)

*Control indicators
eststo: stcox i.londonsentfounder leaderslostdummy  partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 frenchcontrolled britishcontrolled americancontrolled other, vce(robust)


*Group activity indicators
eststo: stcox i.londonsentfounder leaderslostdummy  partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering , vce(robust)

*Full model 
eststo: stcox i.londonsentfounder leaderslostdummy  partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering frenchcontrolled britishcontrolled americancontrolled other, vce(robust)

esttab using "C:\Users\atboutton\Google Drive\Andrew papers\Dolan_Boutton\binarydecap.tex", star(+ 0.10 * 0.05 ** 0.01 *** 0.001) eform replace

eststo clear

eststo: stcox i.londonsentfounder leaderslostdummy partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 if survived1year ==1, vce(robust)

*Control indicators
eststo: stcox i.londonsentfounder leaderslostdummy  partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 frenchcontrolled britishcontrolled americancontrolled other if suvived1year ==1, vce(robust)


*Group activity indicators
eststo: stcox i.londonsentfounder leaderslostdummy  partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering if suvived1year ==1, vce(robust)

*Full model 
eststo: stcox i.londonsentfounder leaderslostdummy  partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering frenchcontrolled britishcontrolled americancontrolled other if suvived1year ==1, vce(robust)

esttab using "C:\Users\atboutton\Google Drive\Andrew papers\Dolan_Boutton\binarydecaponeyear.tex", star(+ 0.10 * 0.05 ** 0.01 *** 0.001) eform replace

eststo clear
*************************************
** Logit models, DV = decapitation **
*************************************

*Core results
eststo: logit leaderslostdummy i.londonsentfounder partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13, vce(robust)

*Control indicators
eststo: logit leaderslostdummy i.londonsentfounder partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 frenchcontrolled britishcontrolled americancontrolled other, vce(robust)


*Group activity indicators
eststo: logit leaderslostdummy i.londonsentfounder partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering, vce(robust)

*Full model 
eststo: logit leaderslostdummy i.londonsentfounder partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering frenchcontrolled britishcontrolled americancontrolled other, vce(robust)

esttab using "C:\Users\atboutton\Google Drive\Andrew papers\Dolan_Boutton\logitdecap.tex", star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace

eststo clear

** Figure 1, main text **
logit leaderslostdummy i.londonsentfounder partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 frenchcontrolled britishcontrolled americancontrolled other, vce(robust)

margins londonsentfounder, atmeans

marginsplot, ylabel(, nogrid)

*************************************
** OLS models, DV = leader arrests **
*************************************

*Core results
eststo: reg ln_leadersarrested i.londonsentfounder partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13, vce(robust)

*Control indicators
eststo: reg ln_leadersarrested i.londonsentfounder partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 frenchcontrolled britishcontrolled americancontrolled other, vce(robust)


*Group activity indicators
eststo: reg ln_leadersarrested i.londonsentfounder partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering, vce(robust)

*Full model 
eststo: reg ln_leadersarrested i.londonsentfounder partofalargernetwork2 activeintheoccupiedzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering frenchcontrolled britishcontrolled americancontrolled other, vce(robust)

esttab using "C:\Users\atboutton\Google Drive\Andrew papers\Dolan_Boutton\olsarrests.tex", star(+ 0.10 * 0.05 ** 0.01 *** 0.001) replace

eststo clear


**************************
** Active in Vichy Zone **
**************************
*Core results
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeinthevichyzone ln_numagents ln_numsubreseau v13, vce(robust)

*Control indicators
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeinthevichyzone ln_numagents ln_numsubreseau v13 frenchcontrolled britishcontrolled americancontrolled other, vce(robust)


*Group activity indicators
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeinthevichyzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering, vce(robust)

*Full model 
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeinthevichyzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering frenchcontrolled britishcontrolled americancontrolled other, vce(robust)

esttab using "C:\Users\atboutton\Google Drive\Andrew papers\Dolan_Boutton\vichyzone.tex", star(+ 0.10 * 0.05 ** 0.01 *** 0.001) eform replace

eststo clear

*Core results
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeinthevichyzone ln_numagents ln_numsubreseau v13 if suvived1year ==1, vce(robust)

*Control indicators
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeinthevichyzone ln_numagents ln_numsubreseau v13 frenchcontrolled britishcontrolled americancontrolled other if suvived1year ==1, vce(robust)


*Group activity indicators
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeinthevichyzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering if suvived1year ==1, vce(robust)

*Full model 
eststo: stcox i.londonsentfounder ln_leadersarrested partofalargernetwork2 activeinthevichyzone ln_numagents ln_numsubreseau v13 parachutages sabotage militaryinforesearch economicintelgathering politicalintelgathering frenchcontrolled britishcontrolled americancontrolled other if suvived1year ==1, vce(robust)

esttab using "C:\Users\atboutton\Google Drive\Andrew papers\Dolan_Boutton\vichyzoneoneyear.tex", star(+ 0.10 * 0.05 ** 0.01 *** 0.001) eform replace

